import com.imooc.entity.User;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.FileSystemXmlApplicationContext;

public class XuTest {
	public static void main(String[] args) {
		String xmlPath1="classpath:spring/spring-config.xml";
		ApplicationContext applicationContext=new FileSystemXmlApplicationContext(xmlPath1);
		User user=(User) applicationContext.getBean("user1");
		System.out.println(user);
	}
}
